﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/WebMaster/MasterPage.master"
    CodeFile="CreateUser.aspx.cs" Theme="WebMaster" Inherits="webapp4U.UI.Article" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>   
<%--<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>--%>


<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">
<%--<uc:Title  runat="server" ResourceKey='Security_NewUser'  />--%>
<br />

    <asp:UpdatePanel ID="EmployeesUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
        
          </ContentTemplate>
    </asp:UpdatePanel>
            
    <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true" ShowSummary="false" />
    <p align="center">
        <asp:Label runat="server" CssClass="lblMsg" ID="lblMsg" Font-Bold="true"></asp:Label>
    </p>
    <table align="center" cellpadding="7" cellspacing="0" border="0">
        <tr>
            <td align="right" style="color: Red">
                (*)
                <%=ResourceManager.GetString("Register_RequiredFields")%>
            </td>
            <td>
            </td>
        </tr>
        <!--Register_LogIn_Information -->
        <asp:Panel runat="server" ID="PanelLogon">
        <tr>
            <td width="170" align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_Role")%>
                :</td>
            </td>
            <td>
                <asp:DropDownList ID="dlRoles" runat="Server" CssClass="Textbox" Width="150px" />
                <webapp4U:ReqFValid SetFocusOnError="true" ResourceName="Register_Role_error" ControlToValidate="dlRoles"
                    ID="ReqRoles" runat="server" Display="none" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_UserName")%>
                :</td>
            <td>
                <asp:TextBox ID="txtUserName" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                <webapp4U:ReqFValid SetFocusOnError="true" ResourceName="Register_UserName_error"
                    ControlToValidate="txtUserName" ID="ReqFValid2" runat="server" Display="none" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_Password")%>
                :</td>
            <td>
                <asp:TextBox ID="txtPassword" TextMode="Password" CssClass="textfield" MaxLength="250"
                    runat="server" Width="250" />
                <asp:RequiredFieldValidator SetFocusOnError="true" ControlToValidate="txtPassword"
                    ID="ReqPassword" runat="server" ErrorMessage="" Display="none" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_ConfirmPassword")%>
                :</td>
            <td>
                <asp:TextBox ID="txtRePassword" TextMode="Password" CssClass="textfield" MaxLength="250"
                    runat="server" Width="250" />
                <asp:CompareValidator SetFocusOnError="true" ID="CompareValRePassword" ControlToValidate="txtRePassword"
                    ControlToCompare="txtPassword" runat="server" ErrorMessage="" Display="none" />
            </td>
        </tr>
        </asp:Panel>
        
        <asp:Panel runat="server" ID="PanelEmployer" Visible="true">
            <tr class="Hidden">
                <td align="right">
                    <span class="Required">*</span>
                    <%=ResourceManager.GetString("Register_CompanyName")%>
                    :</td>
                <td>
                    <asp:TextBox ID="txtCompanyName" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                </td>
            </tr>
            <tr class="Hidden">
                <td align="right" valign="top">
                    &nbsp;
                    <%=ResourceManager.GetString("Register_CompanyDescription")%>
                    :</td>
                <td>
                    <asp:TextBox ID="txtCompanyDesc" MaxLength="3500" runat="server" Width="250" TextMode="MultiLine"
                        Rows="5" />
                </td>
            </tr>
        </asp:Panel>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_Email")%>
                :</td>
            <td>
                <asp:TextBox ID="txtEmail" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                <asp:RequiredFieldValidator SetFocusOnError="true" ControlToValidate="txtEmail" ID="ReqEmail"
                    ErrorMessage="" runat="server" Display="none" />
                <asp:RegularExpressionValidator SetFocusOnError="true" Display="none" ID="RegEmail"
                    runat="server" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_FirstName")%>
                :</td>
            <td>
                <asp:TextBox ID="txtFirstName" MaxLength="250" runat="server" Width="250" />
                <webapp4U:ReqFValid ControlToValidate="txtFirstName" ResourceName="Register_FirstName_error"
                    runat="server" ID="ReqFValid5" />
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_LastName")%>
                :</td>
            <td>
                <asp:TextBox ID="txtLastName" MaxLength="250" runat="server" Width="250" />
                <webapp4U:ReqFValid ControlToValidate="txtLastName" ResourceName="Register_LastName_error"
                    runat="server" ID="ReqFValid6" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_Address")%>
                :</td>
            <td>
                <asp:TextBox ID="txtAddess" MaxLength="250" runat="server" Width="250" />
                <webapp4U:ReqFValid ControlToValidate="txtAddess" ResourceName="Register_Address_error"
                    runat="server" ID="ReqFValid4" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Country")%>
                :</td>
            <td>
                <webapp4U:ddlCountry ID="ddlCountry" runat="server" Width="255" CssClass="Textbox" />
                <webapp4U:ReqFValid ControlToValidate="ddlCountry" ResourceName="Register_Country_error"
                    CssClass="Textbox" runat="server" ID="ReqFValidddlCountry" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Province")%>
                :</td>
            <td>
                <webapp4U:ddlJobLocation ID="ddlJobLocation" runat="server" Width="255" CssClass="Textbox" />
                <webapp4U:ReqFValid ControlToValidate="ddlJobLocation" ResourceName="Register_Province_City_error"
                    CssClass="Textbox" runat="server" ID="ReqFValid1" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <span class="Required">*</span>
                <%=ResourceManager.GetString("Register_ContactPhone")%>
                :</td>
            <td>
                <asp:TextBox ID="txtPhone" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                <webapp4U:ReqFValid ControlToValidate="txtPhone" ResourceName="Register_ContactPhone_error"
                    runat="server" ID="ReqFValid3" />
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
                <%=ResourceManager.GetString("Register_ContactMobile")%>
                :</td>
            <td>
                <asp:TextBox ID="txtMobile" MaxLength="250" runat="server" Width="250" />
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
                <%=ResourceManager.GetString("Register_FaxNumber")%>
                :</td>
            <td>
                <asp:TextBox ID="txtFax" MaxLength="250" runat="server" Width="250" />
            </td>
        </tr>
        <tr class="Hidden">
            <td align="right">
                &nbsp;
                <%=ResourceManager.GetString("Register_Website")%>
                :</td>
            <td>
                <asp:TextBox ID="txtWebsite" MaxLength="250" runat="server" Width="250" />
            </td>
        </tr>
        <tr>
            <td align="right" colspan="2">
                <asp:LinkButton runat="server" ID="btSave" OnClick="btSave_Click" />
            </td>
        </tr>
    </table>
    <br /><br /><br />
       
</asp:Content>